<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let student2 = new Object()
        student2.name ="小明"
        student2.height = 179
        student2["weight"]= "75kg"
        student2.sayhello = function(){
            console.log("hello")

        }
        console.log(student2.name)
        console.log(student2.height)
        console.log(student2.weight)
        student2.sayhello()

    </script>
</body>
</html>